Skip to content

feat(apps): Migrate all apps to Spring AI 2.0 and Spring Boot 4.1#909

Merged
ybezsonov merged 1 commit into
mainfrom
chore/spring-ai-2.0-boot-4.1-migration
Jul 2, 2026
Merged

feat(apps): Migrate all apps to Spring AI 2.0 and Spring Boot 4.1#909
ybezsonov merged 1 commit into
mainfrom
chore/spring-ai-2.0-boot-4.1-migration

Conversation

@ybezsonov

Copy link
Copy Markdown
Contributor

Upgrade every Maven module to Spring Boot 4.1.0 and consolidate all Spring AI usage on the 2.0.0 GA release (previously a mix of 1.1.7, 2.0.0-M6 and 2.0.0-RC2). Fix the breaking changes surfaced by the upgrade:

  • Rename artifact spring-ai-advisors-vector-store to spring-ai-vector-store-advisor.
  • Move @mcptool from org.springaicommunity.mcp.annotation to org.springframework.ai.mcp.annotation.
  • Replace removed McpSyncClientCustomizer with the generic McpClientCustomizer<McpClient.SyncSpec>.
  • Replace removed PromptChatMemoryAdvisor with MessageChatMemoryAdvisor.
  • ChatClient.Builder.defaultOptions now takes a ChatOptions.Builder instead of a built ChatOptions; update call sites and tests.
  • OllamaChatModel.Builder.defaultOptions renamed to options.
  • Migrate direct Jackson databind usage to Jackson 3 (tools.jackson) where Spring AI 2.0 no longer brings Jackson 2 transitively.

All 23 modules compile (mvn clean test-compile) and the affected unit tests pass.

Also improve the Dependabot config: group Spring, Maven plugins, test tooling, Kubernetes, Docker images and GitHub Actions so coordinated upgrades arrive as single reviewable PRs instead of dozens.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Upgrade every Maven module to Spring Boot 4.1.0 and consolidate all
Spring AI usage on the 2.0.0 GA release (previously a mix of 1.1.7,
2.0.0-M6 and 2.0.0-RC2). Fix the breaking changes surfaced by the
upgrade:

- Rename artifact spring-ai-advisors-vector-store to
  spring-ai-vector-store-advisor.
- Move @mcptool from org.springaicommunity.mcp.annotation to
  org.springframework.ai.mcp.annotation.
- Replace removed McpSyncClientCustomizer with the generic
  McpClientCustomizer<McpClient.SyncSpec>.
- Replace removed PromptChatMemoryAdvisor with MessageChatMemoryAdvisor.
- ChatClient.Builder.defaultOptions now takes a ChatOptions.Builder
  instead of a built ChatOptions; update call sites and tests.
- OllamaChatModel.Builder.defaultOptions renamed to options.
- Migrate direct Jackson databind usage to Jackson 3 (tools.jackson)
  where Spring AI 2.0 no longer brings Jackson 2 transitively.

All 23 modules compile (mvn clean test-compile) and the affected unit
tests pass.

Also improve the Dependabot config: group Spring, Maven plugins, test
tooling, Kubernetes, Docker images and GitHub Actions so coordinated
upgrades arrive as single reviewable PRs instead of dozens.
@ybezsonov
ybezsonov merged commit bb9cd01 into main Jul 2, 2026
49 checks passed
@ybezsonov
ybezsonov deleted the chore/spring-ai-2.0-boot-4.1-migration branch July 2, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant